package com.cskaoyan.service;

import com.cskaoyan.bean.bo.AdListBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.pojo.MarketTopic;
import com.cskaoyan.bean.vo.TopicListVO;
import com.cskaoyan.bean.vo.TopicReadVO;
import com.cskaoyan.bean.vo.WxTopicDetailVO;

import java.util.List;

public interface TopicService {

    // 后台管理系统：by陈旭---------------------------

    TopicListVO list(AdListBO adListBO);

    void delete(MarketTopic marketTopic);

    void batchDelet(Integer[] ids);

    MarketTopic create(MarketTopic marketTopic);

    MarketTopic update(MarketTopic marketTopic);

    TopicReadVO read(Integer id);


    // 微信小程序端：by成文琪--------------------------
    /**
     * 微信小程序端：获取全部专题 wx/topic/list
     * 创建日期：2022/04/09 13:04
     * @param  param 分页信息
     * @return com.cskaoyan.bean.vo.TopicListVO
     * @author ChengWenqi
     */
    TopicListVO queryWxTopicList(BaseParam param);

    /**
     * 根据专题topic的id，获取topic详细信息及对应的商品列表
     * 创建日期：2022/04/09 15:37
     * @param  id 专题id
     * @return com.cskaoyan.bean.vo.WxTopicDetailVO
     * @author ChengWenqi
     */
    WxTopicDetailVO queryWxTopicDetail(Integer id);

    /**
     * 根据专题id，获取相关专题：除当前专题外，其它专题按阅读量降序
     * 创建日期：2022/04/09 16:54
     * @param  id 当前专题id
     * @return com.cskaoyan.bean.vo.TopicListVO
     * @author ChengWenqi
     */
    TopicListVO queryWxTopicRelated(Integer id);
}
